@charset "utf-8";
// 登录
.login{
  width: 100%;
  height: 100%;
  background-color: #fff;
  top: 0;
  .logo{
    height: 70px;
    line-height: 70px;
    font-size: 26px;
    font-weight: bolder;
    color: $gray;
    margin-left: 20px;
  } 


  // 更换背景图 换新的类名
  .login-bodyNew{
    @include clear;
    // height: 44%;
    height: 480px;
    // width: 100%;
    width: auto;
    background:#f2f2f2 url(../img/bg.png) 0 0 no-repeat;
    background-size:100% 100%;
    // background:red;
    margin: 0 auto;
    .wrap{
      @include clear;
      width: 1200px;
      margin: 0 auto;
    }
  }

  
  .login-form{
    @include float(right);
    position: relative;
    top: -23px;
    width: 300px;
    padding: 0 30px;
    height: 530px;
    background-color: #fff;
    box-shadow:8px 0px 25px 0px rgba(145,196,255,0.2);
    &::before{
      position: absolute;
      left: -16px;
      content:"";
      width:0;
      height:0;
      border-width: 0 0 24px 16px ;
      border-style:solid;
      border-color: transparent  transparent #2D6DB2 transparent ;
    }
    h2{
      font-size: 24px;
      color: $primary;
      text-align: center;
      font-weight: bolder;
      margin: 50px 0 30px 0;
    }
  }
  .login-code {
    position: relative;
    label{
      position: absolute;
      display: block;
      width: 30px;
      height: 26px;
      line-height: 26px;
      top: 12px;
      left: 5px;
      color: #888;
      text-align: center;
      font-size: 16px;
  }
    input{
    -webkit-transition-duration: .3s;
    transition-duration: .3s;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    display: block;
    width: 100%;
    height: 50px;
    line-height: 50px;
    font-size: 16px;
    color: #555;
    padding: 0 3px;
    padding-left: 40px;
    border: none;
    border-bottom: 1px solid #d2d2d2;
  }
    .code {
      position: absolute;
      cursor: pointer;
      top: 5px;
      right: 0;
      height: 38px;
      img{
        width: 125px;
        height: 45px;
      }
  }
  .icon-code:before {
    content: "\E636";
}
}
  .login-name,.login-password{
    position: relative;
    margin-bottom: 30px;
    label{
      position: absolute;
      display: block;
      width: 30px;
      height: 26px;
      line-height: 26px;
      top: 11px;
      left: 5px;
      color: $icon;
      text-align: center;
      font-size: 16px;
    }
    input{
      @include transition;
      box-sizing: border-box;
      display: block;
      width: 100%;
      height: 50px;
      line-height: 50px;
      font-size: 16px;
      color: $gray;
      padding:0 3px;
      padding-left: 40px;
      border: none;
      border-bottom:1px solid $line;
      &:hover,&:focus{
        border-color:$primary;
      }
      &:hover+label,&:focus+label{
        color:$primary;
        border-color:$primary;
      }
    }
  }
  .login-option{
    @include clear;
    margin:50px 0 20px 0;
    .option-left{
      @include float;
    }
    .option-right{
      @include float(right);
    }
    .forget-password{
      color: $gray;
      cursor: help;
    }
  }
  .login-submit{
    button{
      display: block;
      width: 100%;
      height: 50px;
      font-size: 18px;
    }
  }
  .login-footer{
    text-align: center;
    width: 100%;
    font-size: 14px;
    color: $gray;
    padding: 20px 0;
    margin: 0 auto;
  }
}
